import { S } from '../../s';
import { IPSCode } from './ipscode';
import { PSTextEditorImpl } from './pstext-editor-impl';

export class PSCodeImpl extends PSTextEditorImpl implements IPSCode {
  get codeType(): string {
    return this.M.codeType;
  }

  get enableFullScreen(): boolean {
    return this.M.enableFullScreen != null ? this.M.enableFullScreen : false;
  }

  get enableMinimap(): boolean {
    return this.M.enableMinimap != null ? this.M.enableMinimap : false;
  }
  get cls(): string {
    return 'PSCodeImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._380) return true;
    return super.instanceof(cls);
  }
}
